const express = require('express');
const router = express.Router();
const db = require('../config/db')

router.get('/', (req, res) => {
  const sql = "select * from blogs"
  res.json({data:sql });
});

router.get('/new', (req, res) => {
  res.status(201).json({ msg: '新的篇章，即将开始' });
});

module.exports = router;
